Skip to content

chore(deps): Migrate to @sentry/bundler-plugins#6501

Open
antonis wants to merge 4 commits into
mainfrom
chore/migrate-to-sentry-bundler-plugins
Open

chore(deps): Migrate to @sentry/bundler-plugins#6501
antonis wants to merge 4 commits into
mainfrom
chore/migrate-to-sentry-bundler-plugins

Conversation

@antonis

@antonis antonis commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

📢 Type of change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring

📜 Description

@sentry/babel-plugin-component-annotate and @sentry/bundler-plugin-core were merged into a new unified package, @sentry/bundler-plugins, now published from the sentry-javascript monorepo and versioned in lockstep with @sentry/core (see the bundler-plugins 5.4.0 release notes). The old package is no longer published to npm.

This PR migrates the SDK to the new package:

  • Import swap: sentryBabelTransformerUtils.ts now imports the component-annotate plugin from @sentry/bundler-plugins/babel-plugin (identical default export).
  • Dependency swap (5.3.010.67.0, matching @sentry/core): packages/core, samples/react-native, samples/expo, and yarn.lock.
  • Auto-updater fix: folds @sentry/bundler-plugins into the existing JavaScript SDK updater (scripts/update-javascript.sh) so it tracks sentry-javascript and stays version-locked with @sentry/core. Deletes the now-obsolete scripts/update-bundler-plugins.sh and its bundler-plugins job in update-deps.yml.
  • Updated a stale code comment in touchevents.tsx.

💡 Motivation and Context

The update workflow's bundler-plugins job was failing

💚 How did you test it?

CI

📝 Checklist

  • I added tests to verify changes.
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled.
  • I updated the docs if needed.
  • I updated the wizard if needed.
  • All tests passing.
  • Public API changes reviewed by another Mobile SDK team member or implemented according to the develop docs spec.
  • No breaking changes.

🔮 Next steps

@antonis
antonis force-pushed the chore/migrate-to-sentry-bundler-plugins branch from 6242d63 to b7bec2c Compare July 22, 2026 14:00
@github-actions

github-actions Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Semver Impact of This PR

None (no version bump detected)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


  • chore(deps): Migrate to @sentry/bundler-plugins by antonis in #6501
  • chore(deps): bump json from 2.17.1.2 to 2.19.9 in /performance-tests by dependabot in #6512
  • chore(deps): update CLI to v3.6.2 by github-actions in #6511
  • chore(deps): update Sentry Android Gradle Plugin to v6.16.0 by github-actions in #6508
  • chore(deps): update Android SDK to v8.50.1 by github-actions in #6503

🤖 This preview updates automatically when you update the PR.

@antonis antonis added the ready-to-merge Triggers the full CI test suite label Jul 22, 2026
The @sentry/babel-plugin-component-annotate and @sentry/bundler-plugin-core
packages were merged into @sentry/bundler-plugins, now published from the
sentry-javascript monorepo and versioned in lockstep with @sentry/core. The
old package is no longer published (its 5.4.0 tag broke the auto-updater with
"No candidates found"), so this swaps to the new package and its
./babel-plugin subpath.

Also folds the bundler-plugins dependency into the existing JavaScript SDK
updater so it stays version-locked with @sentry/core, replacing the separate
(now failing) update-bundler-plugins.sh job.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@antonis
antonis force-pushed the chore/migrate-to-sentry-bundler-plugins branch from b7bec2c to e348656 Compare July 22, 2026 14:01
…c node resolution

The tools tsconfigs pin classic `node` moduleResolution, which does not follow
the package's `./babel-plugin` subpath `exports` map, breaking `build:tools`
with TS2307. Add a `paths` shim pointing at the physical type declarations,
mirroring the existing `metro` shim, in the three configs that compile
`src/js/tools` (build.tools, build, lint).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

iOS (legacy) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 3850.26 ms 1224.95 ms -2625.30 ms
Size 4.98 MiB 6.55 MiB 1.57 MiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
853723c+dirty 3852.60 ms 1234.64 ms -2617.96 ms
c151573+dirty 3841.06 ms 1232.13 ms -2608.93 ms
d7d54c6+dirty 3827.13 ms 1217.18 ms -2609.95 ms
68ae91b+dirty 3834.04 ms 1216.60 ms -2617.44 ms
f170ec3+dirty 3822.26 ms 1218.33 ms -2603.93 ms
f9c1ed4+dirty 3833.98 ms 1226.30 ms -2607.68 ms
267d3ed+dirty 3853.65 ms 1224.70 ms -2628.94 ms
3d536d1+dirty 3840.00 ms 1220.13 ms -2619.87 ms
a216cb9+dirty 3839.33 ms 1225.26 ms -2614.07 ms
c004dae+dirty 3850.32 ms 1227.79 ms -2622.53 ms

App size

Revision Plain With Sentry Diff
853723c+dirty 5.15 MiB 6.69 MiB 1.53 MiB
c151573+dirty 5.15 MiB 6.68 MiB 1.53 MiB
d7d54c6+dirty 4.98 MiB 6.51 MiB 1.53 MiB
68ae91b+dirty 4.98 MiB 6.46 MiB 1.48 MiB
f170ec3+dirty 5.15 MiB 6.69 MiB 1.53 MiB
f9c1ed4+dirty 4.98 MiB 6.50 MiB 1.53 MiB
267d3ed+dirty 5.15 MiB 6.69 MiB 1.54 MiB
3d536d1+dirty 4.98 MiB 6.53 MiB 1.55 MiB
a216cb9+dirty 4.98 MiB 6.51 MiB 1.53 MiB
c004dae+dirty 5.15 MiB 6.67 MiB 1.51 MiB

Previous results on branch: chore/migrate-to-sentry-bundler-plugins

Startup times

Revision Plain With Sentry Diff
0095dee+dirty 3821.91 ms 1207.96 ms -2613.95 ms

App size

Revision Plain With Sentry Diff
0095dee+dirty 4.98 MiB 6.55 MiB 1.57 MiB

@github-actions

github-actions Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Android (legacy) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 413.90 ms 444.14 ms 30.24 ms
Size 49.74 MiB 55.36 MiB 5.62 MiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
bc0d8cf+dirty 412.37 ms 466.26 ms 53.89 ms
c823bb5+dirty 409.87 ms 478.57 ms 68.70 ms
774257e+dirty 407.09 ms 447.46 ms 40.37 ms
ae37560+dirty 470.40 ms 564.12 ms 93.72 ms
a3265b6+dirty 406.86 ms 449.84 ms 42.98 ms
5125c43+dirty 497.18 ms 543.78 ms 46.60 ms
1e5d96d+dirty 519.43 ms 543.62 ms 24.19 ms
94af3bd+dirty 503.48 ms 542.37 ms 38.89 ms
3ce5254+dirty 410.57 ms 448.48 ms 37.91 ms
68672fc+dirty 425.02 ms 487.56 ms 62.54 ms

App size

Revision Plain With Sentry Diff
bc0d8cf+dirty 48.30 MiB 53.48 MiB 5.18 MiB
c823bb5+dirty 48.30 MiB 53.58 MiB 5.28 MiB
774257e+dirty 48.30 MiB 53.58 MiB 5.28 MiB
ae37560+dirty 48.30 MiB 53.60 MiB 5.29 MiB
a3265b6+dirty 48.30 MiB 53.58 MiB 5.28 MiB
5125c43+dirty 48.30 MiB 53.54 MiB 5.24 MiB
1e5d96d+dirty 49.74 MiB 54.81 MiB 5.07 MiB
94af3bd+dirty 48.30 MiB 53.57 MiB 5.26 MiB
3ce5254+dirty 43.75 MiB 48.12 MiB 4.37 MiB
68672fc+dirty 48.30 MiB 53.61 MiB 5.31 MiB

Previous results on branch: chore/migrate-to-sentry-bundler-plugins

Startup times

Revision Plain With Sentry Diff
0095dee+dirty 446.38 ms 470.63 ms 24.24 ms

App size

Revision Plain With Sentry Diff
0095dee+dirty 49.74 MiB 55.36 MiB 5.61 MiB

@github-actions

github-actions Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

iOS (new) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 3866.18 ms 1232.96 ms -2633.23 ms
Size 4.98 MiB 6.55 MiB 1.57 MiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
ae37560+dirty 3840.10 ms 1217.89 ms -2622.21 ms
e763471+dirty 3826.10 ms 1221.52 ms -2604.58 ms
0b1b5e3+dirty 3820.72 ms 1207.94 ms -2612.78 ms
5ca03f9+dirty 3873.76 ms 1236.26 ms -2637.51 ms
acd838e+dirty 3835.94 ms 1215.87 ms -2620.07 ms
5789645+dirty 3841.36 ms 1214.81 ms -2626.55 ms
61cc206+dirty 3822.60 ms 1206.17 ms -2616.43 ms
a2585ce+dirty 3837.98 ms 1214.20 ms -2623.77 ms
bc8f61e+dirty 3849.87 ms 1221.19 ms -2628.68 ms
5b7e8a7+dirty 3855.46 ms 1234.47 ms -2620.99 ms

App size

Revision Plain With Sentry Diff
ae37560+dirty 5.15 MiB 6.70 MiB 1.54 MiB
e763471+dirty 4.98 MiB 6.51 MiB 1.53 MiB
0b1b5e3+dirty 5.15 MiB 6.70 MiB 1.54 MiB
5ca03f9+dirty 4.98 MiB 6.53 MiB 1.55 MiB
acd838e+dirty 5.15 MiB 6.70 MiB 1.55 MiB
5789645+dirty 4.98 MiB 6.50 MiB 1.52 MiB
61cc206+dirty 4.98 MiB 6.55 MiB 1.57 MiB
a2585ce+dirty 4.98 MiB 6.55 MiB 1.57 MiB
bc8f61e+dirty 4.98 MiB 6.47 MiB 1.49 MiB
5b7e8a7+dirty 5.15 MiB 6.70 MiB 1.54 MiB

Previous results on branch: chore/migrate-to-sentry-bundler-plugins

Startup times

Revision Plain With Sentry Diff
0095dee+dirty 3836.87 ms 1205.37 ms -2631.50 ms

App size

Revision Plain With Sentry Diff
0095dee+dirty 4.98 MiB 6.55 MiB 1.57 MiB

@github-actions

github-actions Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Android (new) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 458.02 ms 493.82 ms 35.80 ms
Size 49.74 MiB 55.36 MiB 5.62 MiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
04207c4+dirty 395.40 ms 456.55 ms 61.15 ms
e5bb5f6+dirty 438.85 ms 466.33 ms 27.48 ms
3d377b5+dirty 425.38 ms 440.67 ms 15.30 ms
5789645+dirty 502.66 ms 594.19 ms 91.53 ms
4953e94+dirty 398.80 ms 431.81 ms 33.01 ms
7d6fd3a+dirty 435.06 ms 458.78 ms 23.72 ms
7ff4d0f+dirty 403.38 ms 427.06 ms 23.68 ms
61cc206+dirty 417.44 ms 466.29 ms 48.85 ms
853723c+dirty 415.82 ms 460.94 ms 45.12 ms
27d9693+dirty 438.63 ms 514.08 ms 75.46 ms

App size

Revision Plain With Sentry Diff
04207c4+dirty 43.94 MiB 48.98 MiB 5.04 MiB
e5bb5f6+dirty 49.74 MiB 55.09 MiB 5.34 MiB
3d377b5+dirty 43.94 MiB 49.00 MiB 5.06 MiB
5789645+dirty 49.74 MiB 54.85 MiB 5.11 MiB
4953e94+dirty 43.94 MiB 48.94 MiB 5.00 MiB
7d6fd3a+dirty 43.94 MiB 49.00 MiB 5.06 MiB
7ff4d0f+dirty 48.30 MiB 53.60 MiB 5.30 MiB
61cc206+dirty 49.74 MiB 55.36 MiB 5.62 MiB
853723c+dirty 48.30 MiB 53.58 MiB 5.28 MiB
27d9693+dirty 49.74 MiB 55.09 MiB 5.34 MiB

Previous results on branch: chore/migrate-to-sentry-bundler-plugins

Startup times

Revision Plain With Sentry Diff
0095dee+dirty 454.02 ms 495.61 ms 41.59 ms

App size

Revision Plain With Sentry Diff
0095dee+dirty 49.74 MiB 55.36 MiB 5.61 MiB

@sentry

sentry Bot commented Jul 22, 2026

Copy link
Copy Markdown

📲 Install Builds

Android

🔗 App Name App ID Version Configuration
Sentry RN io.sentry.reactnative.sample 8.20.0 (100) Release

⚙️ sentry-react-native Build Distribution Settings

@antonis
antonis marked this pull request as ready for review July 22, 2026 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-merge Triggers the full CI test suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant